package com.chhuang.system.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chhuang.core.mapper.IBaseMapper;
import com.chhuang.system.bean.UserWithRoleIdQueryBean;
import com.chhuang.system.po.ChUser;
import com.chhuang.system.po.ChUserRoleMap;
import com.chhuang.system.po.ChUserRoleMapExample;

public interface ChUserRoleMapMapper extends IBaseMapper<ChUserRoleMap>{
	int countByExample(ChUserRoleMapExample example) throws Exception;

    int deleteByExample(ChUserRoleMapExample example) throws Exception;

    List<ChUserRoleMap> selectByExample(ChUserRoleMapExample example) throws Exception;

    int updateByExampleSelective(@Param("record") ChUserRoleMap record, @Param("example") ChUserRoleMapExample example) throws Exception;

    int updateByExample(@Param("record") ChUserRoleMap record, @Param("example") ChUserRoleMapExample example) throws Exception;
    
    List<ChUser> selectUsersByRoleId(UserWithRoleIdQueryBean queryBean) throws Exception;
    
    int countUsersByRoleId(UserWithRoleIdQueryBean queryBean) throws Exception;
}